<h1>My Order History</h1>

<div class="contentContainer">
<{assign var=i value=0}>
	  <{foreach item=orderEntity from=$listOrders}>
	  <{assign var=price value=$orderEntity->getTotalsPrice()}>
  <h2>Order Number: <{$orderEntity->id}> <span class="contentText">(<{$orderEntity->getStatusName()}>)</span></h2>
  <div class="contentText">    
    <table border="0" width="100%" cellspacing="2" cellpadding="2">
      <tbody>	  
	  <tr>
        <td width="50%" valign="top"><strong>Order Date:</strong> <{$orderEntity->date_purchased}><br><strong>Shipped To:</strong> <{$orderEntity->delivery_name}></td>
        <td width="30%" valign="top"><strong>Products:</strong> <{$orderEntity->getTotalsProduct()}><br><strong>Order Cost:</strong> $<{$price|string_format:"%.2f"}></td>
        <td width="20%" align="right"><span class=""><a id="tdb<{$i}>" href="<{$APPLICATION_URL}>/<{$ownerName}>Product/orderInfo/id/<{$orderEntity->id}>" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-priority-primary" role="button">View</a></span><script type="text/javascript">$("#tdb<{$i}>").button({icons:{primary:"ui-icon-document"}}).addClass("ui-priority-primary").parent().removeClass("tdbLink");</script></td>
     </tr>	   
    </tbody></table>	
  </div>
  <{assign var=i value=$i+1}>
	 <{/foreach}>
  <!--
  <div class="contentText">
    <p style="float: right;">Result Pages: &nbsp;<strong>1</strong>&nbsp;</p>
    <p>Displaying <strong>1</strong> to <strong>3</strong> (of <strong>3</strong> orders)</p>
  </div>
  -->
  <div class="buttonSet">
    <span class=""><a id="tdb8" href="<{$APPLICATION_URL}>/<{$ownerName}>MyAccount" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-icon-primary ui-priority-secondary" role="button"><span class="ui-button-icon-primary ui-icon ui-icon-triangle-1-w"></span>Back</a></span><script type="text/javascript">$("#tdb8").button({icons:{primary:"ui-icon-triangle-1-w"}}).addClass("ui-priority-secondary").parent().removeClass("tdbLink");</script>  </div>
</div>